<%@ page import="java.util.ArrayList" %>
<%@ page import="com.molin.bean.Student" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>显示学生信息</title>
    <style>
        table, tr, th, td {
            border: 1px solid red;
            margin: 0;
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<%--    遍历集合，将学生信息显示在表格中--%>

<table>
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <c:forEach items="${studentArrayList}" var="student">
        <tr>
            <td>${student.name}</td>
            <td>${student.age}</td>
            <td>${student.score}</td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
